﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;
using zhangmenren.ViewModel;

namespace zhangmenren.IService
{
   public interface IRealService : IDependency
    {
        /// <summary>
        /// zheshi chaxun
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<RealMode>> Selelct();

        Task<RealEntity> FindById(int id);
        Task<RealEntity> FindByUser(int userid);
        Task<int> UpState(int id,int state);
        Task<int> Add(RealEntity entity);
        Task<int> Del(int id);
    }
}
